﻿@model SklepISI.Web.Models.ProductsViewModel

@{
    ViewBag.Title = "List";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="span8 well">
    <h2>Produkty</h2>
    <div class="row-fluid">
        @for (int i = 0; i < Model.Products.Count;i++)
        {
            <button class="btn btn-info" onclick="javascript:window.location=('@Url.Action("Details", new {productId = Model.Products[i].ProductId})')" style="margin-bottom: 8px; width: 100%;">
                <span class="pull-left">@Model.Products[i].Name</span> <span class="pull-right" style="font-weight: bold;">@Html.FormatValue(Model.Products[i].Price, "{0:C}")</span>
            </button>
        }
    </div>
</div>

